package com.empirisoftware.api;

import java.io.Serializable;

public class ObjectNotFoundException extends Exception {
	private static final long serialVersionUID = 3143631358916203026L;
	private Class<?> clazz;
	private Serializable key;
	public ObjectNotFoundException(Class<?> clazz, Serializable key) {
		this.clazz = clazz;
		this.key = key;
	}
	public ObjectNotFoundException(Serializable key2) {
		this.key = key2;
		this.clazz = key2.getClass();
	}
	public Class<?> getClazz() {
		return clazz;
	}
	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}
	public Serializable getKey() {
		return key;
	}
	public void setKey(Serializable key) {
		this.key = key;
	}
	
}
